<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('订单打印详情')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId" th:object="${order}">
                    <div class="select-list">
                        <ul>
                            <input type="hidden" name="orderId"  th:value="${order.id}"/>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <span style="font-size: 20px">销售发货单</span>
                <div>
                    <span>商家名称：河南四合材料选购</span>
                </div>
                <div>
                    <span>收件信息：</span>
                </div>
                <div>
                    <span>联系方式：</span>
                    <input disabled="true" name="consigneeName" th:value="${order.consigneeName}" style="border:none;width: 88px">
                    <input disabled="true" name="consigneeTel" th:value="${order.consigneeTel}" style="border:none;width: 88px">
                    <input disabled="true" name="area" th:value="${order.area}" style="border:none;width: 200px">
                    <input disabled="true" name="address" th:value="${order.address}" style="border:none;width: 300px">
                </div>
                <div>
                    <span>配送方式：</span>
                    <input disabled="true" name="postType" th:value="${(order.postType eq 0)?'自提':'邮寄'}" style="border:none;">
                    <input disabled="true" name="shippingName" th:value="${order.shippingName}" style="border:none;">
                </div>
                <div>
                    <span>订单号：</span>
                    <input disabled="true" name="orderNo" th:value="${order.orderNo}" style="border:none;width: 200px">
                    <span>订单日期：</span>
                    <input disabled="true" name="created" th:value="${#dates.format(order.created,'yyyy-MM-dd HH:mm:ss')}" placeholder="yyyy-MM-dd HH:mm:ss" style="border:none;width: 300px">
                </div>
                <div>
                    <span>订单总价：</span>
                    <input disabled="true" name="pricePay" th:value="${order.pricePay}" style="border:none;width: 60px">
                    <span>运费：</span>
                    <input disabled="true" name="postFee" th:value="${order.postFee}" style="border:none;width: 60px">
                    <span>实付金额：</span>
                    <input disabled="true" name="priceRealPay" th:value="${order.priceRealPay}" style="border:none;width: 60px">
                </div>
                <div>
                    <span>买家留言：</span>
                    <input disabled="true" name="buyerMsg" th:value="${order.buyerMsg}" style="border:none;width: 900px">
                </div>
            </div>

        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('mall:orderDetail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('mall:orderDetail:remove')}]];
        var comentDatas  = [[${@dict.getType('has_coment')}]];
        var prefix = ctx + "system/order/goods";

        $(function() {
            var options = {
                url: prefix ,
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "订单打印详情",
                columns: [{
                    checkbox: false
                },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                    {
                        field: 'orderId',
                        title: '商品编码'
                    },
                    {
                        field: 'goodsProductUrl',
                        title: '商品图片',
                        formatter: function(value, row, index) {
                            return $.table.imageView( value);
                        }
                    },
                    {
                        field: 'goodsName',
                        title: '商品名称'
                    },
                {
                    field: 'goodsProductSpec',
                    title: '规格'
                },
                {
                    field: 'total',
                    title: '数量'
                },
                    {
                    field: 'priceN',
                    title: '单价'
                    },
                ]
            };
            $.table.init(options);
        });

        $("input[name='created']").datetimepicker({
            format: "yyyy-mm-dd hh:ii:ss",
            autoclose: true
        });

    </script>
</body>
</html>